<template>
  <div class="container row">
    <div class="col-lg-12 col-md-12 col-sm-12 col-sx-12">
      <div class="admin-home">
        <tab-bar :tags="tags"></tab-bar>
        <!--    <blog-management></blog-management>-->
        <router-view v-slot="{ Component }">
          <keep-alive include="BlogManagement">
            <component :is="Component" />
          </keep-alive>
        </router-view>
        <Footer></Footer>
      </div>
    </div>
  </div>

</template>

<script>
import TabBar from "../../header/TabBar";
import BlogManagement from "../blogManagement/BlogManagement";
import Footer from "../../footer/Footer";
export default {
  name: "AdminHome",
  data(){
    return {
      tags:[
        {
          name:'博客管理',
          link:{
            path:'/adminpage/blogm'
          }
        },
        {
          name:'分类管理',
          link:{
            path:'/adminpage/categorym'
          }
        },
        {
          name:'标签',
          link:{
            path:'/adminpage/tagm'
          }
        },
        {
          name:'留言',
          link:{
            path:'/adminpage/messagem'
          }
        },
        {
          name:'访问信息',
          link:{
            path:'/adminpage/accessinfo'
          }
        }
      ]
    }
  },
  components:{
    TabBar,BlogManagement,Footer
  }
}
</script>

<style scoped>
.admin-home{
  min-height: 900px;
}
</style>